#include<bits/stdc++.h>
using namespace std;

int a[110];
 
signed main() {
	int n;
	cin >> n;
	for(int i = 1; i <= n; ++i)cin >> a[i];
	sort(a + 1, a + n + 1);
	int t = unique(a + 1,  a + n + 1) - (a + 1);
	for(int i = 1; i <= t; ++i) {
		cout << a[i] << ' ';
	}
	return 0;
}
